if not SlashCmdList.EQUIP_SET then
	SlashCmdList.EQUIP_SET = function(msg)
		local set = SecureCmdOptionParse(msg)
		if set and set ~= "" then
			EquipmentManager_EquipSet(set)
		end
	end
end

if not GearManagerToggleButton then
	local button = CreateFrame("Button", "GearManagerToggleButton", PaperDollFrame)
	button:SetSize(32, 32)
	button:SetPoint("TOPRIGHT", -44, -39)
	button:SetScript("OnEvent", function (self)
		GameTooltip_AddNewbieTip(self, EQUIPMENT_MANAGER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_EQUIPMENT_MANAGER)
	end)
	button:SetScript("OnLeave", GameTooltip_Hide)
	button:SetScript("OnClick", function ()
		if GearManagerDialog:IsShown() then
			GearManagerDialog:Hide()
		else
			GearManagerDialog:Show()
		end
	end)
	local t = button:CreateTexture()
	t:SetAllPoints()
	t:SetTexture"Interface\\PaperDollInfoFrame\\UI-GearManager-Button"
	button:SetNormalTexture(t)
	t = button:CreateTexture()
	t:SetAllPoints()
	t:SetTexture"Interface\\PaperDollInfoFrame\\UI-GearManager-Button-Pushed"
	button:SetPushedTexture(t)
	t = button:CreateTexture()
	t:SetAllPoints()
	t:SetTexture"Interface\\PaperDollInfoFrame\\UI-MicroButton-Hilight"
	t:SetBlendMode"ADD"
	t:SetTexCoord(0, 1, 0.390625, 0.96875)
	button:SetHighlightTexture(t)
end
